import Vue from 'vue'
import Antd from 'ant-design-vue'
import App from './App.vue'
import 'ant-design-vue/dist/antd.css'
import store from './store/index'
Vue.config.productionTip = false
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Antd);
Vue.use(Vant)
Vue.directive('debounce', {
  inserted(el, binding) {
    let timer;
    el.addEventListener('click', () => {
      if (timer) clearTimeout(timer);
      timer = setTimeout(() => {
        binding.value();
      }, 1000); // 1秒防抖
    });
  },
});
import router from './router'
new Vue({
  router,
  store,
  render: function (h) { return h(App) },
}).$mount('#app')
